예제 #1
0
        public void Given_UserTypes_When_GetUserTypesAsyncsIsCalled_Then_ShouldReturnZeroUserTypes()
        {
            RunOnDatabase(context =>
            {
                // ARRANGE
                var userTypesRepository = new RolesRepository(context);

                // ACT
                var userTypes = userTypesRepository.GetAllAsync();
                var counter   = userTypes.Result.Count;
                // ASSERT
                counter.Should().Be(0);
            });
        }