Exemplo n.º 1
0
        public static ILocalizationService CreateLocalizationService()
        {
            var localizationService = new Mock <ILocalizationService>();

            EmbeddedResource resource = new EmbeddedResource("GridLocalization", null);

            localizationService.Setup(l => l.One(It.IsAny <string>())).Returns((string key) => resource.GetByKey(key));
            localizationService.Setup(l => l.All()).Returns(() => new Dictionary <string, string>());

            return(localizationService.Object);
        }