public void Test_Name()
        {
            //Arrange
            var client = new ClientModel
            {
                FirstName = "Stuart",
                ContraIndicationsIsPregnant = true
            };

            var command = _mapper.Map<ClientModel, RegisterNewClient>(client);

            // Assert
            //command.FirstName.f.ShouldNotBeNull();

            //domainClient.ContraIndications.IsPregnant.ShouldBeTrue();
        }
Example #2
0
        public async Task<RedirectToRouteResult> Edit(ClientModel clientModel)
        {
            var cmd = _mapper.Map<UpdateClient>(clientModel);

            await _bus.ExecuteAsyncCommand(cmd);

            Notify<SuccessMessage>($"{cmd.FirstName} {cmd.LastName} successfully updated.");

            return RedirectToAction("Index");
        }