public void PSOT_NewOvertime_ViewModel_AreEqual_Expected_Test()
        {
            NewOverTimeViewModel vm = new NewOverTimeViewModel
            {
                Applier = "Rex",
                ApplyDateTime = DateTime.Now.Date,
                OverTimeHour = 3,
            };

            BuilderController traget = new BuilderController();

            ViewResult actual = (ViewResult)traget.NewOvertime(vm);

            var expected = new
            {
                Applier = "Rex",
                ApplyDateTime = DateTime.Now.Date,
                OverTimeHour = 3,
            }.ToExpectedObject();

            expected.ShouldMatch(actual.Model);
        }
Example #2
0
        public void Search_WithTestQuery_ReturnsCorrectMember()
        {
            var expected = new
            {
                FullName = "Trello.NET Test User",
                Bio = "Test bio",
                Url = "https://trello.com/trellnettestuser",
                Username = "trellnettestuser",
                Id = Constants.MeId,
                AvatarHash = "076e3caed758a1c18c91a0e9cae3368f",
                Initials = "TU"
            }.ToExpectedObject();

            var actual = _trelloReadOnly.Search("Trello.NET Test User").Members.First();

            expected.ShouldMatch(actual);
        }