コード例 #1
0
 public void LoginCommandExecuted_UsernameIsKnud_CollecterDoesUserExistReceivesKnud()
 {
     _sut.UserName = "******";
     _sut.Password = "";
     _sut.LoginCommand.Execute(null);
     _collector.Received().DoesUserExist("Knud", Arg.Any <string>());
 }
コード例 #2
0
 public void Login_UsernameIsBent_CollectorDoesUserExistReceivesBent()
 {
     _uut.Login("Bent", "");
     _collector.Received().DoesUserExist("Bent", Arg.Any <string>());
 }