示例#1
0
        public void add_table_correctly(AddTableCommand command)
        {
            Execute(command);

            UnitOfWorkMock.Received().Add(Arg.Is <Table>(x =>
                                                         x.Title == command.Title &&
                                                         x.Description == command.Description));
        }
示例#2
0
        public void add_user_with_table_correctly(AddTableCommand command)
        {
            PasswordManagerMock.CreateSecondHash(Arg.Any <string>(), Arg.Any <string>()).Returns("xyz");

            Execute(command);

            UnitOfWorkMock.Received().Add(Arg.Is <User>(x =>
                                                        x.Login == command.Title && x.SecondHash == "xyz"));
        }