public void Given_UserType_When_DeleteUserTypeAsync_Then_ShouldBeTrue() { RunOnDatabase(context => { // ARRANGE var userTypesRepository = new RolesRepository(context); var userType = Role.Create("student"); context.Roles.Add(userType); context.SaveChanges(); // ACT var result = userTypesRepository.DeleteAsync(userType.Id); // ASSERT result.Result.Should().Be(true); }); }