public async Task CreatePart_Success() { //Act var action = await warehouseController.CreatePart() as ViewResult; var model = action.Model as PostPutPartViewModel; //Assert Assert.Null(model.Part); }