public void CustomerOrderScreenViewModelConstructorTest() { var mockDeviceManager = new Mock <IPOSDeviceManager>(); try { _target = new CustomerOrderScreenViewModel(new BBQRMSEntities(_mServiceAddress), new MessageBus(), mockDeviceManager.Object); } catch (Exception) { Assert.Fail("Exception in Constructor"); } finally { Assert.IsTrue(true); } }
public static void BeforeAllTests(TestContext testContext) { ServerTimeProvider.Current = MTime; ClientTimeProvider.Current = MTime; // start the data service _mServiceAddress = new Uri("http://localhost:80/Temporary_Listen_Addresses/BBQRMSTestingCustomerOrderScreenViewModelTest/"); Host.Open(_mServiceAddress); _mDataService = new BBQRMSEntities(_mServiceAddress); var mockDeviceManager = new Mock <IPOSDeviceManager>(); _target = new CustomerOrderScreenViewModel(_mDataService, new MessageBus(), mockDeviceManager.Object); }