public async Task Should_Create_Update_Success() { var input = new ClientCreateDto { ClientId = "test", ClientName = "test-name" }; (await _clientAppService.CreateAsync(input)).ShouldNotBeNull(); }
public async Task Should_Create_A_Valid_Client() { //Act var result = await _clientAppService.CreateAsync( new CreateUpdateClientDto { FirstName = "Demo", LastName = "Client", Code = "WALKIN", CategoryId = 1, EmailAddress = "*****@*****.**", MobileNumber = "+2781758964" } ); //Assert result.Id.ShouldNotBe(0); result.EmailAddress.ShouldBe("*****@*****.**"); }
public async Task CreateClient_ShouldCreateNewClientTest() { // Act var input = new ClientDto { Name = "Gerson Caballero", Code = "A12345", IdNumber = "217377237" }; //Arrage var output = await _clientAppService.CreateAsync(input); // Assert output.ShouldNotBeNull(); output.IdNumber.ShouldBe(input.IdNumber); output.Name.ShouldBe(input.Name); output.Code.ShouldBe(input.Code); }
public virtual Task <ClientDto> CreateAsync(ClientCreateDto input) { return(_clientAppService.CreateAsync(input)); }