public void LookupController_Edit_ReturnsNotFoundWhenIdIsInvalid()
        {
            // arrange
            var saveThis = LookupViewModelTestUtility.CreateEditorViewModel(false);

            LookupServiceInstance.GetByIdReturnValue = null;

            // act
            var actual = SystemUnderTest.Edit(saveThis);

            // assert
            UnitTestUtility.AssertIsHttpNotFound(actual);
            Assert.IsFalse(LookupServiceInstance.WasSaveCalled, "Save should not be called.");
        }
        public void LookupController_Edit_NewItem_SavesAndReturnsCreatedAtActionResultWithNewId()
        {
            // arrange
            var saveThis = LookupViewModelTestUtility.CreateEditorViewModel(true);

            LookupServiceInstance.OnSaveUpdateId = true;

            // act
            var actual = SystemUnderTest.Edit(saveThis);

            // assert
            UnitTestUtility.AssertIsRedirectToActionResult(actual);
            Assert.IsTrue(LookupServiceInstance.WasSaveCalled, "Save was not called.");
            // Assert.AreSame(saveThis, LookupServiceInstance.SaveArgumentValue, "Wrong value was saved.");
        }