public void Create_IEqualityComparerOverload() { var result = DataStoreFactory.Create <string, int> (_comparer); Assert.That(result, Is.TypeOf(typeof(SimpleDataStore <string, int>))); Assert.That(((SimpleDataStore <string, int>)result).Comparer, Is.SameAs(_comparer)); }
public void DataStoreFactory_Test(string dataStore, Type expected) { //var appConfig = new Mock<IAppConfig>(); //appConfig.Setup(x => x.GetKeyValue(It.IsAny<string>())).Returns("Backup"); var sut = new DataStoreFactory(); var ret = sut.Create(dataStore); Assert.IsType(expected, ret); }
public void Create() { var result = DataStoreFactory.Create <string, int>(); Assert.That(result, Is.TypeOf(typeof(SimpleDataStore <string, int>))); }
protected override void Initialize(MusicRepository <TEnum> instance) { base.Initialize(instance); instance.MusicDataStore = DataStoreFactory.Create(); }