public void UserService_Doesnt_Create_User_With_Emtpty_FirstName_And_Lastname() { // Don't test WebApiUrlAddress since it's address is build during runtime // urlService.UseWebapiUrlAddress() urlService.UseSpaUrlAddress(); var confirmationUrl = urlService.BuildConfirmationUrl("123", "token123"); Assert.Contains("123", confirmationUrl.ToString()); Assert.Contains("token123", confirmationUrl.ToString()); }