diff --git a/tests/Infrastructure/MinimalApiCleanArchitecture.Infrastructure.UnitTests/Services/GrpcServices/AuthorGrpc/AuthorGrpcServiceTests.cs b/tests/Infrastructure/MinimalApiCleanArchitecture.Infrastructure.UnitTests/Services/GrpcServices/AuthorGrpc/AuthorGrpcServiceTests.cs index 8a06d52..bef20e3 100644 --- a/tests/Infrastructure/MinimalApiCleanArchitecture.Infrastructure.UnitTests/Services/GrpcServices/AuthorGrpc/AuthorGrpcServiceTests.cs +++ b/tests/Infrastructure/MinimalApiCleanArchitecture.Infrastructure.UnitTests/Services/GrpcServices/AuthorGrpc/AuthorGrpcServiceTests.cs @@ -47,7 +47,7 @@ public AuthorGrpcServiceTests() _authorProtoModel = new AuthorProtoModel() { Id = Guid.NewGuid().ToString(), Name = "Jon Doe", Bio = "Developer", - DateOfBirth = Timestamp.FromDateTime(new DateTime(1990, 9, 1).ToUniversalTime()) + DateOfBirth = Timestamp.FromDateTime(new DateTime(1990, 9, 1,0,0,0,DateTimeKind.Utc).ToUniversalTime()) }; var authors = new RepeatedField() {_authorProtoModel}; _authorsProtoResponse = new GetAllAuthorsProtoResponse() {Authors = {authors}}; @@ -60,7 +60,7 @@ public AuthorGrpcServiceTests() } [Fact] - public async Task TestAddInfrastructureServices_AddInfrastructureServicesShould_GetServices() + public void TestAddInfrastructureServices_AddInfrastructureServicesShould_GetServices() { _serviceProvider.GetService().Should().NotBeNull(); _serviceProvider.GetService().Should().BeNull(); @@ -112,7 +112,7 @@ public async Task TestGetAuthorById_GetAuthorByIdShouldReturn_GetAuthor() [Fact] public async Task TestCreateAuthor_CreateAuthorShouldReturn_InsertedAuthor() { - var request = new CreateAuthorRequest("Jon", "Doe", "Developer", new DateTime(1990, 9, 1)); + var request = new CreateAuthorRequest("Jon", "Doe", "Developer", new DateTime(1990, 9, 1,0,0,0,DateTimeKind.Utc)); var protoRequest = _mapper.Map(request); @@ -129,7 +129,7 @@ public async Task TestCreateAuthor_CreateAuthorShouldReturn_InsertedAuthor() [Fact] public async Task TestUpdateAuthor_UpdateAuthorShouldReturn_UpdateStstusTrue() { - var request = new UpdateAuthorRequest(Guid.NewGuid(), "Jon", "Doe", "Developer", new DateTime(1990, 9, 1)); + var request = new UpdateAuthorRequest(Guid.NewGuid(), "Jon", "Doe", "Developer", new DateTime(1990, 9, 1,0,0,0,DateTimeKind.Utc)); var protoRequest = _mapper.Map(request); var mockCall = CallHelpers.CreateAsyncUnaryCall(_updateAuthorProtoResponse);