public void Test_create_otp_new() { // Arrange CleanTables(); application.ResetRules(); string test_user = "******"; // Act string password = application.CreateOtp(test_user); var koRules = application.ApplicationRules.Where(r => !r.Result); // Assert Assert.IsNotNull(password); Assert.IsTrue(password.Length == 24); Assert.IsTrue(koRules.Count() == 0); }