public void UpdateNetworkTest() { Network network = new Network(1) { Name = "Iridum v2", AirtimeProviderId = 1 }; bool success = networkRepository.UpdateNetwork(network); Assert.IsTrue(success); Assert.AreEqual("Vizada", network.AirtimeProvider, "Network"); }
public void InsertNetworkTest() { Network network = new Network() { Name = "Thuraya", AirtimeProviderId = 1 }; networkRepository.InsertNetwork(network); Assert.IsNotNull(network.Id, "Id Check"); Assert.AreEqual("Vizada", network.AirtimeProvider, "Airtime Provider"); }