Ejemplo n.º 1
0
        public async Task Should_SignUp(int ACountryId, int ACityId, string AEmailAddress)
        {
            // Arrange
            var LPayLoad = new UserCreateDto
            {
                FirstName    = "Ester",
                LastName     = "Exposito",
                NickName     = "Ester",
                EmailAddress = AEmailAddress,
                Password     = "******",
                CountryId    = ACityId,
                CityId       = ACountryId
            };

            // Act
            await FAccounts.SignUp(LPayLoad, 12);

            // Verify action
            FMockDbContext
            .Verify(AMainDbContext => AMainDbContext
                    .SaveChangesAsync(CancellationToken.None), Times.Once);
        }